package com.pengxh.app.realityshow;

import android.app.Application;

import com.pengxh.app.multilib.utils.SaveKeyValues;
import com.pengxh.app.multilib.widget.EasyToast;

public class BaseApplication extends Application {

    private static BaseApplication baseApplication = null;

    @Override
    public void onCreate() {
        super.onCreate();
        EasyToast.init(this);
        SaveKeyValues.initSharedPreferences(this);
    }

    public static BaseApplication getInstance() {
        if (null == baseApplication) {
            synchronized (BaseApplication.class) {
                if (null == baseApplication) {
                    baseApplication = new BaseApplication();
                }
            }
        }
        return baseApplication;
    }
}
